#!/bin/sh

# dependencies which will be checked

# depends on grep
# depends on ls



XXX='__$XXX__'

abc () {
    echo "__abc__"
}


# conditional comments
# the code block in the first condition
# which expression that return true (0) 
# will be included in the script

#if (include_random -q 3 ; [ $? -eq 0 ])
pre_func () {
    echo "__pre_func__IF_IS_TRUE"
}
pre_var='__$pre_var__IF_IS_TRUE'

#elif (include_random -q 3; [ $? -eq 1 ])
pre_func () {
    echo "__pre_func__ELIF_IS_TRUE"
}
pre_var='__$pre_var__ELIF_IS_TRUE'

#else
pre_func () {
    echo "__pre_func__ELSE_IS_TRUE"
}
pre_var='__$pre_var__ELSE_IS_TRUE'
#fi




# preprocessing block
# the code within a block will be executed
# and all output will be includet in the script

#preprocess_start
cat <<EOF
pre_block_func () {
    echo "__pre_block_func__"
}
EOF
echo "pre_block_var='__\\$pre_block_var__'"
#preprocess_end


